import { Tools } from 'weaver-mobile';

export const queryVirtual = (params = {}) => Tools.callApi({url: '/api/public/browser/data/1', method: 'GET', params: {...params, ismobile: 1}});

export const queryData = (params = {}) => Tools.callApi({url: '/api/public/browser/data/1', method: 'GET', params: {...params, ismobile: 1}});

export const init = (params = {}) => Promise.all([queryVirtual(params), queryData(params)])


export const getv2grouptree = (params = {}) => Tools.callApi({
	url: '/api/public/browser/data/1?pageSize=10&current=1&min=1&max=10&virtualtype=1&status=8&cmd=v2grouptree',
	method: 'GET',
	params:{...params,ismobile: 1}
});